package com.picket.dao;

import java.util.Collection;

import com.picket.domain.UserPool;

public interface IUserPoolDao {

	public UserPool create(final UserPool userPool) ;
	
	public Collection<UserPool> getAllUserPools();
	
	public Collection<UserPool> getAllUserPoolsForEvent(long eventId);
	
	public UserPool getUserPool(long id);

	public Collection<UserPool> findByEmail(String email);
	
	public Collection<UserPool> getAllUserPoolsForPool(long poolId);

	public void updatePoints(Long id, Integer totalPoints, Integer totalCorrect);
	
	public UserPool findByPoolId(long poolId);
	
	public Collection<UserPool> findByEmailAndPoolId(String email,long poolId);
}
